<template>
        <el-row class="row" >
            <el-col class="left" :span="4"
                ><img class="img" :src="data.cover"
            /></el-col>
            <el-col :span="17">
                <div class="center">
                    <div class="title">{{ data.planName }}</div>
                    <div class="time">
                        已练习{{ data.weekTrainedCount }}次{{
                            (data.weekTrainedDuration / 1000 / 60).toFixed(0)
                        }}分钟
                    </div>
                    <div class="author"></div>
                </div>
            </el-col>
            <el-col :span="2">
                <div class="right">
                    <i class="iconfont">{{
                        data.status == "processing" ? "&#xe65c;" : "&#xe74b;"
                    }}</i>
                    <div class="text">
                        {{ data.status == "processing" ? "进行中" : "未开始" }}
                    </div>
                </div>
            </el-col>
        </el-row>
</template>

<script setup lang="ts">

const props = defineProps(["data"]);

</script>

<style lang="less" scoped>
a:link:hover {
    color: #f936bb !important;
    text-decoration: none;
}
.row {
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
    .left.el-col-4 {
        width: 169px;
        height: 101px;
        margin-right: 20px;
        border-radius: 4px;
        max-width: 169px;
        flex: 1;

        .img {
            width: 100%;
            height: 100%;
        }
    }
    .right {
        text-align: center;
        position: relative;
        top: 30px;
        left: 30px;

        .text {
            font-size: 14px;
            color: #7d8090;
            margin-top: 9px;
        }
        .iconfont {
            color: #f4afcb;
            font-size: 25px;
        }
    }
    .center {
        .title {
            font-size: 16px;
            font-weight: 700;
            color: #111;
        }
        .time {
            margin-top: 25px;
            font-size: 14px;
            color: #7d8090;
        }
        // .author {
        // }
    }
}
</style>
